package com.tx.admin.entity.content;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;

import com.tx.admin.entity.RbacEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 文章
 * @author ldl
 *
 */
@Entity
@Data
public class ArticleEntity extends RbacEntity{

	@NotBlank
	@ApiModelProperty("标题")
	private String title;
	
	@NotBlank
	@ApiModelProperty("摘要")
	private String digest;
	
	@NotBlank
	@ApiModelProperty("正文")
	@Column(columnDefinition="text")
	private String content;

	
	@NotBlank
	//图片集合
	@ApiModelProperty("封面")
	private String picture;
	
	@ApiModelProperty("点击量")
	private Integer clickTotal;

	@ApiModelProperty("主题")
	@NotBlank
	private String themeId;
	
}
